<?php
return array(
	'view' => AdminModule::COMMON_VIEW.'order.view',
	'detailView' => array(
		'attributes' => array(
			'sn',
			'receiverInfo.receiver',
			'receiverInfo.mobile',
			'receiverInfo.email',
//			array(
//				'name' => 'receiverInfo.province',
//				'value' => Yii::app()->enum->lookup('district', CHtml::value($model, 'receiverInfo.province')) 
//					.' '.Yii::app()->enum->lookup('district.city', CHtml::value($model, 'receiverInfo.city'))
//					.' '.Yii::app()->enum->lookup('district.district', CHtml::value($model, 'receiverInfo.district'))
//			),
//			'receiverInfo.address',
			'items.goods.title',
			'items.item_num',
			'total',
			array(
				'name' => 'items.provider_id',
				'value' => CHtml::link(
							CHtml::value($model, 'items.provider.worker_name'),
							Yii::app()->createUrl('shop/index',array('uid'=>CHtml::value($model, 'items.provider_id')))
						),
				'type' => 'raw'
			),
//			array(
//				'name' => 'items.dealer_id',
//				'value' => CHtml::value($model, 'items.dealer.worker_name')
//			),
			array(
				'name' => 'pay_type',
				'value' => Yii::app()->enum->lookup('order.payType', CHtml::value($model, 'pay_type'))
			),
			array(
				'name' => 'status',
				'value' => $model->stateHandle->lookup()
			),
			'create_time',
			'update_time',
//			array(
//				'name'=>'remark',
//				'type'=>'raw',
//			),
		),
	),
	'_import' => array(
		array('*', 'actions.view//*'),
	),
)

?>